<!DOCTYPE html>
<html lang="en">
<head>
	<{include file="header.html"}>
	<title>编辑教室-教务管理-<{$user_data['school_name']}>-德安信会计在线教育平台</title>
	<script>
	$(function(){
		$("#btn_save").click(function(){
			$("form").submit();
		});
	})
	</script>
</head>
<body>
	<div class="wrap">
		<!--star left-->
		<div class="column">
			<{include file="left_menu.html"}>
		</div>
		<div id="ContMianBox">
			<!--star子栏目-->
            <div class="sub-colum">
			    <div class="tit"><{$left_menu_min.menu}></div>
			    <ul>
			        <{foreach from=$left_menu_min.list item=item}>
			        <li <{if $item['url'] == $left_menu_min.curr}>class="curr"<{/if}>><a href="<{$item['url']}>"><{$item['name']}></a></li>
			        <{/foreach}>
			    </ul>
			</div>
            <!--end子栏目-->
			<!--end left-->
			<div class="container narrow">
			    <!--star conter-->
			    <div class="cetContent">
						<div class="tit p-lr20">
						    <a class="c-40d064" href="/school_room">教室管理</a><em class="p-lr10 c-CCCCCC fs12">/</em><em>编辑教室</em>
						</div>
					<!--star内容区域-->
					<div class="mainScroll">
					    <div class="mainContainer line-all">

					        <div class="tabMainCont">

					            <!--star 编辑基本信息-->
					            <div class="tabItem step-02">

														<form action="<{$post_url}>" method="post" class="layui-form">
															
														<div class="layui-form-item">
														 <label class="layui-form-label">教室名称：</label>
														 <div class="layui-input-block">
															 <input type="text" name="name" style="width: 500px;" value="<{if isset($name)}><{$name}><{/if}>" placeholder="教室名称" required  lay-verify="required" autocomplete="off" class="layui-input">
															 <{if isset($name_err)}>
															<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
															<span class="tip" style=" padding:2px 5px;"><{$name_err}></span>
															<{/if}>
														 </div>
														</div>
														<div class="layui-form-item">
													    <label class="layui-form-label">校区：</label>
															<div class="layui-input-inline">
																	<select name="campus_id"  style="width: 500px;" required  lay-verify="required">
																	<option value="">请选择校区</option>
																	<{foreach from=$campus item=item}>
																	<option value="<{$item['id']}>" <{if $campus_id|default:0 == $item['id']}>selected<{/if}>><{$item['name']}></option>
																	<{/foreach}>
																</select>
																<{if isset($campus_err)}>
															 <i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
															 <span class="tip" style=" padding:2px 5px;"><{$campus_err}></span>
															 <{/if}>
													  	</div>
													  </div>

														<div class="layui-form-item">
													    <label class="layui-form-label">容纳人数：</label>
													    <div class="layui-input-inline">
													      <input type="number" lay-verify="number" name="total_number" value="<{if isset($total_number)}><{$total_number}><{/if}>" maxlenght="8" required lay-verify="required" placeholder="教室可容纳人数" autocomplete="off" class="layui-input">
																<{if isset($total_number_err)}>
																<i class="layui-icon" style="font-size: 30px; color: red">&#x1007;</i>
																<span class="tip" style=" padding:2px 5px;"><{$total_number_err}></span>
																<{/if}>
															</div>
													    <div class="layui-form-mid layui-word-aux">人</div>
													  </div>


														<div class="layui-form-item">
														 <div class="layui-input-block">
															 <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
															 <button type="reset" class="layui-btn layui-btn-primary">取消</button>
														 </div>
														</div>


					            </form>
					            </div>
					            <!--end 编辑基本信息-->

					        </div>


					    </div>
					</div>
					</div>
					<!--end内容区域-->

		    <!--end conter-->
		</div>


	</div>
</div>
<{include file="footer.html"}>
<script>
	layui.use('laydate', function(){
		var laydate = layui.laydate;

		var start = {
			min: laydate.now(-30)
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				end.min = datas; //开始日选好后，重置结束日的最小日期
				end.start = datas //将结束日的初始值设定为开始日
			}
		};

		var end = {
			min: laydate.now()
			,max: laydate.now(+365)
			,istoday: false
			,choose: function(datas){
				start.max = datas; //结束日选好后，重置开始日的最大日期
			}
		};

		document.getElementById('LAY_demorange_s').onclick = function(){
			start.elem = this;
			laydate(start);
		}
		document.getElementById('LAY_demorange_e').onclick = function(){
			end.elem = this
			laydate(end);
		}

	});
</script>

</body>
</html>
